<!--测试指令-->

<div class="demo-modal refund">
	<div class="modal-header">
		<h4 class="modal-title" id="modal-title">
			还款明细
			<i class="icon icon-guanbi2" ng-click="cancel()"></i>
		</h4>
	</div>
	<div class="modal-body" id="gathering-body">
		<div class="info-judge" style="text-align: left;">
		     <div class="mingXi">
		     	<p>
		     		<span>贷款金额：</span>
		     		<span>{{param1.headList.apply_money | toRMB}}</span>
		     	</p>
		     	<p>
		     		<span>贷款期数：</span>
		     		<span>共{{param1.headList.num}}期</span>
		     	</p>
		     	<p>
		     		<span>放款日期：</span>
		     		<span>{{param1.headList.loan_time}}</span>
		     	</p>
		     	<p>
		     		<span>放款金额：</span>
		     		<span>{{param1.headList.loan_amount | toRMB}}</span>
		     	</p>
		     </div>
		     <div class="mingXi">
		     	<p>
		     		<span>月利息：</span>
		     		<span>{{param1.headList.moth_repayment_rate | toRMB}}（{{param1.headList.interest+'%'}}）</span>
		     	</p>
		     	<p>
		     		<span>已还期数：</span>
		     		<span>{{param1.headList.periods}}</span>
		     	</p>
		     	<p>
		     		<span>最近还款日：</span>
		     		<span>{{param1.headList.repayment_time}}</span>
		     	</p>
		     	<p>
		     		<span>最近还款期：</span>
		     		<span>{{param1.headList.repayment_periods}}</span>
		     	</p>
		     </div>
	    </div>
	    <div class="dataList">
		    <table class="table">
		        <thead>
		        <tr>
		        	<th>状态</th>
		            <th>期数</th>
		            <th>还款日期</th>
		            <th>应收金额</th>
		            <th>实收金额</th>
		            <th>本期余额</th>
		            <th>提交时间</th>
		            <th>复核时间</th>
		        </tr>
		        </thead>
		        <tbody>
		        <tr ng-if="isData" class="_loading">
		            <td colspan="10">
		                <div class="no_data" ng-if="isData">还未还款</div>
		            </td>
		        </tr>
		        <tr ng-repeat="(i,item) in param1.PaidPayList track by $index " ng-class="{'table-focus':item.periods==param1.headList.repayment_periods}">
		            <td>已还</td>
		            <td>{{item.periods}}</td>
		            <td>{{item.repayment_time}}</td>
		            <td>{{item.real_payment_money  | toRMB}}</td>
		            <td>{{item.month_repayment_money | toRMB}}</td>
		            <td>{{tem.real_payment_money-item.month_repayment_money  | toRMB}}</td>
		            <td>{{item.add_time}}</td>
		            <td>{{item.review_time}}</td>
		        </tr>
		        <tr ng-repeat="(i,item) in param1.overduePayList track by $index " ng-class="{'table-focus':item.periods==param1.headList.repayment_periods}">
		            <td>逾期</td>
		            <td>{{item.periods}}</td>
		            <td>{{item.repayment_time}}</td>
		            <td>{{item.real_payment_money  | toRMB}}</td>
		            <td>{{item.month_repayment_money | toRMB}}</td>
		            <td>{{tem.real_payment_money-item.month_repayment_money  | toRMB}}</td>
		            <td>{{item.add_time}}</td>
		            <td>{{item.review_time}}</td>
		        </tr>
		        <tr ng-repeat="(i,item) in param1.unpaidPayList track by $index " ng-class="{'table-focus':item.periods==param1.headList.repayment_periods}">
		            <td>未还</td>
		            <td>{{item.periods}}</td>
		            <td>{{item.repayment_time}}</td>
		            <td>{{item.real_payment_money  | toRMB}}</td>
		            <td>{{item.month_repayment_money | toRMB}}</td>
		            <td>{{tem.real_payment_money-item.month_repayment_money  | toRMB}}</td>
		            <td>{{item.add_time}}</td>
		            <td>{{item.review_time}}</td>
		        </tr>
		        </tbody>
		    </table>
		</div>
	</div>
	<div class="modal-footer">
		<button class="btn btn-primary" type="button" ng-click="cancel()">关闭</button>
	</div>
</div>